class AddWinsCountLossesCountAndWinPercentageToUsers < ActiveRecord::Migration
  def self.up
    add_column :users, :wins_count, :integer,:default=>0
    add_column :users, :losses_count, :integer,:default=>0
    add_column :users, :percentage, :float,:default=>0
  end

  def self.down
    remove_column :users, :percentage
    remove_column :users, :losses_count
    remove_column :users, :wins_count
  end
end
